import Mock from 'mockjs';

Mock.mock(
  'http://202.120.40.87:14642/api/message/unread',
  'get',
  () => (
    {
      status: '200',
      message: '请求成功',
      data: {
        unread: [
          {
            type: 1,
            fromUser: {
              userId: 20,
              username: '李',
            },
            content: '未读消息',
            process: '123',
            device: '0',
            time: '2019-12-06T07:02:29.934+0000',
            toUser: [
              {
                userId: 50,
                username: '天',
              },
            ],
            messageId: 'c54ef66e-be54-4cf2-a423-f34e6204fb03',
          },
        ],
      },
    }
  ),
);
